from django.db import models

#导入时间域
from django.utils import timezone

#基类
class Base(models.Model):

	#创建时间
	create_time = models.DateTimeField(default=timezone.now,null=True)

	class Meta:
		abstract = True

#用户类
class User(Base):

	id = models.AutoField(primary_key=True)
	username = models.CharField(max_length=100)
	password = models.CharField(max_length=200)
	num = models.IntegerField(null=True)

	class Meta:
		db_table = "user"



class Users(Base):

	username = models.CharField(max_length=100)
	password = models.CharField(max_length=200)
	password1 = models.CharField(max_length=200)
	phone = models.IntegerField()
	email = models.IntegerField()



	class Meta:
		db_table = "u"





